#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"

void ListTest()
{
	//创建双向链表变量
	LTNode* plist = NULL;
	//初始化,成为双向链表
	LTInit(&plist);
	//尾插
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPrint(plist);//尾插5个数据并且打印
	LTNode* find = LTFind(plist, 1);
	LTErase(find);
	//打印
	LTPrint(plist);
	//销毁
	LTDesTroyPro(plist);
	plist = NULL;
}

void ListTestPro()
{
	//初始化
	LTNode* plist = LTInitPro();
}

int main()
{
	//ListTest();
	ListTestPro();
	return 0;
}